package lew.bing.exp.files;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Created by 刘国兵 on 2018/9/9.
 */
public class ListFiles {

    public static void main(String[] args) throws IOException {
        Path path = Paths.get("H:\\迅雷");
        Files.newDirectoryStream(path, "*.{rmvb,mp4,mkv}")
                .forEach(System.out::println);
    }

}
